import unittest
import main


class MyTestCase(unittest.TestCase):
    def test_something(self):
        import math
        for i in range(-1000, 1000):
            s = str(math.factorial(abs(i)))
            ss = s.rstrip("0")
            self.assertEqual(len(s) - len(ss), main._count_ending_zeros_of_factorial(i))


if __name__ == '__main__':
    unittest.main()
